import { createApp } from 'vue';
// element图标库
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
// 样式
import 'element-plus/dist/index.css';
import 'element-plus/theme-chalk/display.css';
import './assets/styles/index.scss';
import 'uno.css';
import router from './router/index';
import store from './store/index';
import App from './App.vue';

// import './mock/index';
const app = createApp(App);
app.use(router);
app.use(store);
/**
 * 批量注册Element-Plus组件
 */
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.mount('#app');
